import request from '@/utils/http'

// 租用数据接口
export interface RentData {
  id: number
  over_time: string
  created_at: string
  updated_at: string
  user_id: number
  phone_id: number
  nick_name: string
  phone_identify: string
  consul_id: string
  android_version: string
  vip_level: string
  vip_id: number
  adb_type: boolean
}

// 查询参数
export interface RentQueryParams {
  page: number
  pageSize: number
  sort?: string
  keyword?: string
}

// 获取租用列表
export const getRentList = (params: RentQueryParams) => {
  return request.post<{
    code: number
    msg: string
    data: RentData[]
  }>({
    url: '/api/rentBack/list',
    data: params
  })
} 